import {Collection} from "java.util.Collection";

@dslClass({ language: "java", code: "java.util.List", name: "",arrayAccessMode:"arrayList" })
@constructorKind(  { kind : "arrayList" } )
export class ArrayList<T> extends Collection<T> {

    public add(t:T):void;

    public size() : number;

    public contains(t:T) :boolean;

    public remove(t:T) : boolean;

    public remove(@dslParameter({ name: "下标",numberType:"int" }) index:number) : boolean;

    public get(@dslParameter({ name: "下标",numberType:"int" }) index:number) : T;

    public isEmpty() : boolean;

    public clear() : void;

}